<template>
  <div class="mc-introduction">
    <img v-if="logoImg" :src="logoImg" class="mc-logo" />
    <h1 v-if="title" class="mc-title">{{ title }}</h1>
    <h2 v-if="subTitle" class="mc-subtitle">{{ subTitle }}</h2>
    <div v-if="description && description.length" class="mc-description">
      <p v-for="(item, index) in description" :key="index">{{ item }}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
defineProps({
  logoImg: {
    type: String,
    default: '',
  },
  title: {
    type: String,
    default: '',
  },
  subTitle: {
    type: String,
    default: '',
  },
  description: {
    type: Array,
    default: () => [],
  },
});
</script>

<style scoped>
.mc-introduction {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.mc-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.mc-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--devui-text, #252b3a);
}

.mc-subtitle {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--devui-text, #252b3a);
}

.mc-description {
  max-width: 600px;
}

.mc-description p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--devui-text-weak, #575d6c);
  line-height: 1.5;
}
</style> 